package com.woniuxy.cloud.ticket52;

import com.woniuxy.cloud.ticket52.common.result.Result;
import com.woniuxy.cloud.ticket52.form.ActorAddForm;
import com.woniuxy.cloud.ticket52.form.CommentAddForm;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value="movie52",contextId = "actor")
public interface ActorAPI {

    @PostMapping("addactor")
    public Result addactor(@RequestBody ActorAddForm form);

    @GetMapping("getactor")
    public Result getactor(@RequestParam("movie_id") int movie_id);
}
